import request from "../request";

// 获取轮播图
export function handleBanner() {
  return request({
    url: "/banner",
    method: "get"
  })
}


// 获取热门推荐歌单
export function handleHotRecommend() {
  return request({
    url: "/top/playlist",
    method: "get",
    params: {
      limit: 12,
      offset: 0,
      cat: "流行",
      order: "hot"
    }
  })
}

// 新碟上架
export function handleNewDisc(offset, limit) {
  return request({
    url: "/top/album",
    method: "get",
    params: {
      offset,
      limit
    }
  })
}


// 榜单
export function handleRanking() {
  return request({
    url: "/toplist/detail",
    method: "get"
  })
}